reftests: Check that inherited properties work
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 May 2011 16:43:10 +0000 (18:43 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:59 +0000 (22:17 +0200)
tests/reftests/Makefile.am
tests/reftests/css-match-inherit.css [new file with mode: 0644]
tests/reftests/css-match-inherit.ref.ui [new file with mode: 0644]
tests/reftests/css-match-inherit.ui [new file with mode: 0644]

index eb80c9a9ab778182e74740b3c9465a5c19558be8..bf329e55e9b8b4ea224a81cd736cd8bd6f0fd805 100644 (file)
@@ -38,6 +38,9 @@ EXTRA_DIST += \
        css-match-exact.css \
        css-match-exact.ref.ui \
        css-match-exact.ui \
+       css-match-inherit.css \
+       css-match-inherit.ref.ui \
+       css-match-inherit.ui \
        css-match-name.css \
        css-match-name.ref.ui \
        css-match-name.ui \
diff --git a/tests/reftests/css-match-inherit.css b/tests/reftests/css-match-inherit.css
new file mode 100644 (file)
index 0000000..b96a01a
--- /dev/null
@@ -0,0 +1,11 @@
+* {
+  engine: none;
+}
+
+GtkButton {
+  color: red;
+}
+
+.testinherit * {
+  color: red;
+}
diff --git a/tests/reftests/css-match-inherit.ref.ui b/tests/reftests/css-match-inherit.ref.ui
new file mode 100644 (file)
index 0000000..a1e70d9
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkButton" id="button1">
+        <property name="name">reference</property>
+        <property name="label" translatable="yes">Hello World</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="has_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+        <style>
+          <class name="testinherit"/>
+        </style>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/css-match-inherit.ui b/tests/reftests/css-match-inherit.ui
new file mode 100644 (file)
index 0000000..e2e9f66
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkButton" id="button1">
+        <property name="name">reference</property>
+        <property name="label" translatable="yes">Hello World</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="has_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+      </object>
+    </child>
+  </object>
+</interface>